package com.parking.status.sync.netty.util;

/**
 * Created by Administrator on 2015/9/16.
 */
public class LocalInfo {

    private static int seqno = 0;

    public static short getCompanyCode() {
        return 1;
    }

    public static short getAddressCode() {
        return 2;
    }

    public static int getRevAddressCode() {
        return 64;
    }

    public static String getIdParking() {
        return "ABCD";
    }

    synchronized public static int getSeqNo() {
        seqno = ++seqno % Integer.MAX_VALUE;
        return seqno == 0 ? ++seqno : seqno;
    }
}
